import request from '@/utils/request'

// 查询自动化违规记录列表
export function listAutoViolationRecord(query) {
  return request({
    url: '/auto/kjerp/erpAutoViolationInfo/getViolationByStoreId',
    method: 'get',
    params: query
  })
}

// 查询自动化违规记录详细
export function getAutoViolationRecord(data) {
  return request({
    url: '/auto/kjerp/erpAutoViolationRecord/selectById',
    method: 'get',
    params: data
  })
}

// 新增自动化违规记录
export function addAutoViolationRecord(data) {
  return request({
    url: '/auto/system/autoViolationRecord',
    method: 'post',
    data: data
  })
}

// 修改自动化违规记录
export function updateAutoViolationRecord(data) {
  return request({
    url: '/auto/system/autoViolationRecord',
    method: 'put',
    data: data
  })
}

// 删除自动化违规记录
export function delAutoViolationRecord(id) {
  return request({
    url: '/auto/system/autoViolationRecord/' + id,
    method: 'delete'
  })
}
